package com.qfedu.factory;

/**
 * @Classname App
 * @Description TODO
 * @Date 2025-10-10 15:04
 * @Created by 老任与码
 */
public class App {
    public static void main(String[] args) throws Exception {
        PayInterface pay1 = PayFactory.createInstance(1);
        pay1.pay();

        PayInterface pay2 = PayFactory.createInstance(2);
        pay2.pay();

        PayInterface pay3 = PayFactory.createInstance(WxPay.class);
        pay3.pay();
    }
}
